package com.dolphin.serviceprice.remote;

import com.dolphin.common.dto.ResponseResult;
import com.dolphin.common.request.ForecastPriceDTO;
import com.dolphin.common.response.DirectionResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

// 修改: 添加 @FeignClient 的 name 属性
@FeignClient(name = "service-map") // 添加 name 属性和可选的 url 属性
public interface ServiceMapClient {
    @RequestMapping(method = RequestMethod.GET, value = "/direction/driving")
    ResponseResult<DirectionResponse> direction(@RequestBody ForecastPriceDTO forecastPriceDTO);
}